package com.wangjiyuan.giftshuo.bean.listtopbean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by ZangSyeriong on 2016/11/15.
 *
 * 榜单里TabLayout标题
 *
 */

public class HeaderBean {


    /**
     * code : 200
     * data : {"ranks":[{"id":1,"mark_style":0,"name":"每日推荐","title":"每日推荐好礼：一天都不愿错过 ","update_at":1479257671},{"id":2,"mark_style":1,"name":"TOP100","title":"TOP100榜单，把最受欢迎的好礼打包送上","update_at":1478503588},{"id":3,"mark_style":1,"name":"独立原创榜","title":"独立原创榜，帮你找到独一无二的好礼","update_at":1478793600},{"id":4,"mark_style":1,"name":"新星榜","title":"礼物新星榜，最新最火单品推荐","update_at":1478880000}]}
     * message : OK
     */

    @SerializedName("code")
    private int code;
    @SerializedName("data")
    private DataBean data;
    @SerializedName("message")
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        @SerializedName("ranks")
        private List<RanksBean> ranks;

        public List<RanksBean> getRanks() {
            return ranks;
        }

        public void setRanks(List<RanksBean> ranks) {
            this.ranks = ranks;
        }

        public static class RanksBean {
            /**
             * id : 1
             * mark_style : 0
             * name : 每日推荐
             * title : 每日推荐好礼：一天都不愿错过
             * update_at : 1479257671
             */

            @SerializedName("id")
            private int id;
            @SerializedName("mark_style")
            private int markStyle;
            @SerializedName("name")
            private String name;
            @SerializedName("title")
            private String title;
            @SerializedName("update_at")
            private int updateAt;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getMarkStyle() {
                return markStyle;
            }

            public void setMarkStyle(int markStyle) {
                this.markStyle = markStyle;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public int getUpdateAt() {
                return updateAt;
            }

            public void setUpdateAt(int updateAt) {
                this.updateAt = updateAt;
            }
        }
    }
}
